<template>
    <div class="tab-container">
        <el-tabs style='margin-top:15px;' v-model="activeName">
            <el-tab-pane :label="$t('route.SMSRecord')" name="first">
                <sms-send-record v-if="activeName === 'first'"></sms-send-record>
            </el-tab-pane>
            <el-tab-pane :label="$t('SMSRecord.smsSendGroup')" name="second">
                <sms-send-group v-if="activeName === 'second'"></sms-send-group>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    export default {
      data() {
        return {
          activeName: 'first'
        }
      },
      components: {
        'sms-send-record': () => import('./components/SMSSendRecord'),
        'sms-send-group': () => import('./components/SMSSendGroup')
      }
    }
</script>

<style scoped>
.tab-container {
  margin: 30px 15px;
}
</style>